package service.impl;

import bean.LostComment;
import dao.ILostCommentDao;
import dao.IProductTypeDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import service.ILostCommentService;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional
public class LostCommentServiceImpl  implements ILostCommentService {
    @Resource
    private ILostCommentDao iLostCommentDao;

    @Override
    public List<LostComment> queryAll() {
        return iLostCommentDao.queryAll();
    }

    @Override
    public LostComment queryById(Integer c_id) {
        return iLostCommentDao.queryById(c_id);
    }

    @Override
    public void add(LostComment lostComment) {
        iLostCommentDao.add(lostComment);
    }

    @Override
    public void update(LostComment lostComment) {

        iLostCommentDao.update(lostComment);
    }

    @Override
    public void delete(LostComment lostComment) {
        iLostCommentDao.delete(lostComment);
    }
}
